const Koa = require('koa')
const compress = require('koa-compress')
const bodyParser = require('koa-bodyparser')
const router = require('./router.js')
const app = new Koa()


app
  .use(bodyParser())
  .use(router.routes())
  .use(router.allowedMethods())
  .use(compress())
  

app.listen(3000)
